<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="keywords" content="PHP,内容,管理">
		<meta name="description" content="PHP内容管理系统">
		<title>首页 - 内容管理系统</title>
		<link rel="stylesheet" href="/static/index/css/style.css">
		<script src="/static/index/js/jquery.2.1.4.min.js"></script>
		<script src="/static/index/js/common.js"></script>
<!--	</head>-->
	<body>
		<!--页面顶部-->
		<div class="top">
			<div class="top-container">
				<div class="top-logo">
					<a href="./"><img src="/static/index/image/logo.png" alt="内容管理系统"></a>
				</div>
				<div class="top-nav">
					<a href="http://www.cms.com/index.php/home/index/index.html" class="">首页</a>
					{volist name="data" id="v"  length='5'}
					<a href="http://www.cms.com/index.php/home/index/list.html?cid={$v.id}" class="" name="father">{$v.name}</a>
					{/volist}
<!--					<aa href="list]=.php?cid=2" class="">资讯</aa>-->
<!--					<aa href="list.php?cid=3" class="">编程</aa>-->
<!--					<aa href="list.php?cid=4" class="">互联网</aa>-->
					<a href="about.php" class="">联系我们</a>
				</div>
				<div class="top-toggle jq-toggle-btn"><i></i><i></i><i></i></div>
			</div>
		</div>
		<!--页面内容-->
		<div class="main">
			<!-- 幻灯片模块 -->
			<div class="slide">
				<div class="slide-wrap">
					<ul>
						<li><a href="#"><img src="/static/index/image/20.jpg" alt="点击查看"></a></li>
						<li><a href="#"><img src="/static/index/image/21.jpg" alt="点击查看"></a></li>
						<li><a href="#"><img src="/static/index/image/22.jpg" alt="点击查看"></a></li>
					</ul>
				</div>
				<ul class="slide-circle">
					<li class="on"></li>
					<li></li>
					<li></li>
				</ul>
			</div>
			<!-- 文章列表模块 -->
			<div class="main-body">
				<div class="main-wrap">
					<div class="main-left">
						<div class="al">
							{foreach $list as $v}
								<div class="al-each">
								<div class="al-info">
									<a href="http://www.cms.com/index.php/home/index/show.html?id={$v.id}">{$v.title}</a>
								</div>
								<div class="al-desc"></div>
								{if isset($v.description)}
									<div class="al-img">
										<a href="http://www.cms.com/index.php/home/index/show.html?id={$v.id}">
											<img src="{$v.thumb}" alt="点击阅读文章">
										</a>
									</div>
								{/if}
								<div class="al-more">
									<span>作者：{$v.user.username} | 发表于：{$v.create_time}</span>
									<a href="http://www.cms.com/index.php/home/index/show.html?id={$v.id}">查看原文</a>
								</div>
							</div>
							{/foreach}
<!--								<div class="al-more">-->
<!--									<span>作者：博学谷 | 发表于：2016-05-31 14:50:07</span>-->
<!--									<aa href="show.php?id=2">查看原文</aa>-->
<!--								</div>-->
<!--							</div>-->

<!--							<div class="pagelist"><span>首页</span>-->
<!--								<span>上一页</span><aa href="?page=1" class="curr">1</aa><aa href="?page=2">2</aa>-->
<!--								<aa href="?page=2">下一页</aa><aa href="?page=2">尾页</aa>-->
<!--							</div>-->
						</div>
						{$list|raw}
					</div>
					<div class="main-right">
						<div class="si">
							<!-- 栏目列表 -->
							<div class="si-each">
								<div class="si-title">内容栏目</div>
								<div class="si-p1">
									{foreach $data as $v}
									<a href="http://www.cms.com/index.php/home/index/list.html?cid={$v.id}" title="{$v.name}" name="son">{$v.name}</a>
									{/foreach}
<!--									<aa href="list.php?cid=1" title="生活">生活</aa>-->
<!--									<aa href="list.php?cid=2" title="资讯">资讯</aa>-->
<!--									<aa href="list.php?cid=3" title="编程">编程</aa>-->
<!--									<aa href="list.php?cid=4" title="互联网">互联网</aa>-->
<!--									<aa href="list.php?cid=5" title="科技">科技</aa>-->
								</div>
							</div>
							<!-- 浏览历史 -->
							<div class="si-each">
								<div class="si-title">浏览历史</div>
								<div class="si-p2">
									{volist name="history" id="vo"  length='5'}
									{if is_array($history)}
									<p><a href="http://www.cms.com/index.php/home/index/show.html?id={$key}">{$vo}</a></p>
									{else/}
									<p><a href="http://www.cms.com/index.php/home/index/show.html?id={$vo.article_id}">{$vo.article.title}</a></p>
									{/if}

									{/volist}
								</div>
							</div>
							<!-- 最热文章 -->
							<div class="si-each">
								<div class="si-title"><span class="si-p3-top">TOP 10</span> 热门文章</div>
								<div class="si-p3">
									{foreach $hot as $v}
									<p><a href="http://www.cms.com/index.php/home/index/show.html?id={$v.id}">{$v.title}</a></p>
									{/foreach}
<!--									<p><aa href="show.php?id=6">PHP学科：MySQL手册免费分享</aa></p>-->
<!--									<p><aa href="show.php?id=1">这是第一篇文章</aa></p>-->
<!--									<p><aa href="show.php?id=4">想少走弯路，就看看这个贴：PHPer职业发展规划与技能需求！</aa></p>-->
<!--									<p><aa href="show.php?id=5">前端必学框架Bootstrap，3天带你从入门到精通，免费分享！</aa></p>-->
<!--									<p><aa href="show.php?id=3">PHP进阶：要想提高PHP的编程效率，你必须知道的49个要点</aa></p>-->
<!--									<p><aa href="show.php?id=2">最涨薪PHP项目—PHP微信公众平台开发</aa></p>-->
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--页面尾部-->
		<div class="footer">PHP内容管理系统　本系统仅供参考和学习</div>
	</body>
	<script>
		function history(id){
			alert(1);
		}

	</script>
</html>